#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :isaleapyear.py
# @Time      :2020/6/22 11:02
# @Author    :Administrator

"""判断是否闰年"""
while True:
    try:
        input_year = int(input("请输入年份:"))
        if input_year % 4 == 0 and (input_year % 100 != 0 or input_year % 400 == 0):
            print('{0}是闰年'.format(input_year))
        else:
            print('{0}不是闰年'.format(input_year))
    except ValueError:
        print('输入的不是整数!')
